// 列表--搜索字段
export const indexSearchData = [{
  key: 'hospitalSpdCode',
  title: '院内编码',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'name',
  title: '产品名称',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'deliverCode',
  title: '配送商产品编码',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'deliver',
  title: '配送商',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
},
{
  key: 'time',
  title: '入库日期',
  type: 'time',
  fieldname: ['createdAtStart', 'createdAtEnd'],
  attr: {
    style: 'width:533px !important;',
    class: 'daterange',
    type: 'daterange',
    'start-placeholder': '开始月份',
    'end-placeholder': '结束月份',
    'default-time': ['00:00:00', '23:59:59']
  }
},
{
  key: 'orderCode',
  title: '订单号',
  type: 'input',
  attr: {
    placeholder: '请输入'
  }
}]

// 列表--列表表头
export const indexTableColumns = [{
  width: '55',
  type: 'selection'
},
{
  prop: 'hospitalSpdCode',
  label: '院内编码',
  'min-width': 180
},
{
  prop: 'deliveryProductName',
  label: '产品名称',
  width: 180
},
{
  prop: 'specification',
  label: '规格',
  width: 180
},
{
  prop: 'productType',
  label: '型号',
  width: 180
},
{
  prop: 'unit',
  label: '单位',
  width: 180
},
{
  prop: 'price',
  label: '单价',
  width: 180
},
{
  prop: 'num',
  label: '数量',
  width: 180
},
{
  prop: 'money',
  label: '采购金额',
  width: 180
},
{
  prop: 'saleOrder',
  label: '采购订单号',
  width: 200
},
{
  prop: 'deliverOrder',
  label: '入库单号',
  width: 200
},
{
  prop: 'revenueDate',
  label: '入库日期',
  width: 200
},
{
  prop: 'deliveryName',
  label: '配送商名称',
  width: 200
},
{
  prop: 'deliveryProductCode',
  label: '配送商产品编码',
  width: 200
},
{
  prop: 'settleStatus',
  label: '生成结算单',
  width: 200
}
]

// 列表--列表表头
export const listTableColumns = [
  { width: '80', prop: 'order', label: '序号' },
  { 'min-width': '300', prop: 'settleOrderCode', label: '结算单号' },
  { width: '200', prop: 'productSpecCount', label: '品规数' },
  { width: '200', prop: 'settleMoney', label: '结算金额' },
  { width: '200', prop: 'distributorComanyName', label: '配送商名称' },
  { width: '200', prop: 'createAt', label: '生成日期' },
  { width: '200', prop: 'orderStatus', label: '结算状态' },
  { width: '200', 'min-width': '100', prop: 'action', label: '操作' }
]

// 详情表单内容
export const detailsDetailForm = [
  { key: 'settleOrderCode', title: '结算单号' },
  { key: 'distributorComanyName', title: '供应商名称' },
  { key: 'productSpecCount', title: '品规数' },
  { key: 'orderStatus', title: '订单状态' },
  { key: 'settleMoney', title: ' 总金额' },
  { key: 'createAt', title: ' 生成时间' }
]

// 详情 - 表格
export const invoiceColumns = [
  { prop: 'billTitle', label: '发票抬头', 'min-width': 150 },
  { prop: 'billCode', label: '发票代码', width: 300 },
  { prop: 'billNumber', label: '发票编号', width: 300 },
  { prop: 'billMoney', label: '发票金额', width: 200 },
  { prop: 'billRemark', label: '备注', width: 200 },
  { prop: 'detail', label: '详情', width: 150 }
]
// 产品明细详情 - 表格
export const detailsTableColumns = [
  { prop: 'hospitalSpdCode', label: '院内编码', 'min-width': 150 },
  { prop: 'deliveryProductName', label: '产品名称', width: 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'unit', label: '单位', width: 150 },
  { prop: 'prise', label: '单价', width: 150 },
  { prop: 'num', label: '数量', width: 150 },
  { prop: 'money', label: '采购金额', width: 150 },
  { prop: 'saleOrder', label: '采购订单号', width: 150 },
  { prop: 'deliverOrder', label: '入库单号', width: 150 },
  { prop: 'revenueDate', label: '入库日期', width: 150 },
  { prop: 'deliveryProductCode', label: '配送商产品编码', width: 150 }
]
